## Process this file with automake to produce Makefile.in

#-------------------------------------------------------------------------------

# This file is part of Code_Saturne, a general-purpose CFD tool.
#
# Copyright (C) 1998-2020 EDF S.A.
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA 02110-1301, USA.

#-------------------------------------------------------------------------------

# PLE dependency

if HAVE_INTERNAL_PLE
  CPPFLAGS_PLE = -I$(top_srcdir)/libple/src -I$(top_builddir)/libple
else
  CPPFLAGS_PLE = $(PLE_CPPFLAGS)
endif

# Main part

AM_CPPFLAGS = \
-I$(top_srcdir)/src/alge \
-I$(top_srcdir)/src/bft \
-I$(top_srcdir)/src/fvm \
-I$(top_srcdir)/src/base \
-I$(top_srcdir)/src/cdo \
$(CPPFLAGS_PLE) \
$(MPI_CPPFLAGS)

AM_CFLAGS = $(CFLAGS_DBG) $(CFLAGS_OPT)

AM_LDFLAGS =

# Public header files (to be installed)

pkginclude_HEADERS = \
cs_geom.h \
cs_join.h \
cs_join_intersect.h \
cs_join_merge.h \
cs_join_mesh.h \
cs_join_perio.h \
cs_join_post.h \
cs_join_set.h \
cs_join_split.h \
cs_join_update.h \
cs_join_util.h \
cs_mesh.h \
cs_mesh_adjacencies.h \
cs_mesh_bad_cells.h \
cs_mesh_boundary.h \
cs_mesh_boundary_layer.h \
cs_mesh_builder.h \
cs_mesh_cartesian.h \
cs_mesh_coherency.h \
cs_mesh_coarsen.h \
cs_mesh_connect.h \
cs_mesh_extrude.h \
cs_mesh_from_builder.h \
cs_mesh_group.h \
cs_mesh_halo.h \
cs_mesh_headers.h \
cs_mesh_location.h \
cs_mesh_quality.h \
cs_mesh_quantities.h \
cs_mesh_refine.h \
cs_mesh_remove.h \
cs_mesh_save.h \
cs_mesh_thinwall.h \
cs_mesh_to_builder.h \
cs_mesh_warping.h \
cs_mesh_smoother.h \
cs_partition.h \
cs_stl.h

# Library source files

noinst_LTLIBRARIES = libcsmesh.la \
                     libcspartition.la

libcsmesh_la_SOURCES = \
cs_geom.c \
cs_join.c \
cs_join_intersect.c \
cs_join_merge.c \
cs_join_mesh.c \
cs_join_perio.c \
cs_join_post.c \
cs_join_set.c \
cs_join_split.c \
cs_join_update.c \
cs_join_util.c \
cs_mesh.c \
cs_mesh_adjacencies.c \
cs_mesh_bad_cells.c \
cs_mesh_boundary.c \
cs_mesh_boundary_layer.c \
cs_mesh_builder.c \
cs_mesh_cartesian.c \
cs_mesh_coarsen.c \
cs_mesh_coherency.c \
cs_mesh_connect.c \
cs_mesh_extrude.c \
cs_mesh_from_builder.c \
cs_mesh_group.c \
cs_mesh_halo.c \
cs_mesh_location.c \
cs_mesh_quality.c \
cs_mesh_quantities.c \
cs_mesh_refine.c \
cs_mesh_remove.c \
cs_mesh_save.c \
cs_mesh_thinwall.c \
cs_mesh_to_builder.c \
cs_mesh_warping.c \
cs_mesh_smoother.c \
cs_stl.c

libcsmesh_la_LDFLAGS = -no-undefined

# Partitioner (may require extra headers)

libcspartition_la_CPPFLAGS = $(AM_CPPFLAGS) \
$(METIS_CPPFLAGS) $(SCOTCH_CPPFLAGS)
libcspartition_la_SOURCES = cs_partition.c
libcspartition_la_LDFLAGS = -no-undefined

